package top.wfzzq.basic;

import java.util.Random;

public class Temp {

	public static void main(String[] args) {
		//设定的随机数
		Random random = new Random();
		//定义数组对象
		int[] nums = new int[1];
		//设定总数初始值为0
		int count = 0;
		for (int i = 0; i < nums.length; i++) {
			nums[i] = random.nextInt(50);
			System.out.print(nums[i] + "   ");
			count = count + (nums[i] % 2);
		}

		System.out.println(count);
	}
}
